import { Scene_StoreFile } from "@/scenes/Scene_StoreFile.js";
import { DataManager } from "@/managers/DataManager.js";
import { StorageManager } from "@/managers/StorageManager.js";

export class Scene_Save extends Scene_StoreFile {
    constructor() {
        super();
    }

    attachHnadler(){
        this._storeWindow.setHandler('ok',(item,index)=>{
            StorageManager.save(index+1,DataManager.makeSaveContents());
            this._storeWindow.setItem(index,DataManager.makeGlobalInfo());
        });
    }
}